package com.mag.domain;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Suppliers {
    private String SupplierID;
    private String SupplierName;
    private String SupplierAddress;
    private String WebSite;
    private String SupplierPhone;
    private String FaxSupplier;
    private String OfficialEmail;
    private String PersonContact;
    private String PhoneContact;
    private Date DateBulid;
    private String GoodsSupply;
    private Date DateFirstSupply;
    private int AccumulativeTime;
    private int AccumulativeLevel;
    private int NumFault;
    private int NumBacklogging;
    private double TotalMoney;
    private double NoFaultRate;
    private double DeliveryOnTime;

    public String getSupplierID() {
        return SupplierID;
    }

    public void setSupplierID(String supplierID) {
        this.SupplierID = supplierID;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String supplierName) {
        this.SupplierName = supplierName;
    }

    public String getSupplierAddress() {
        return SupplierAddress;
    }

    public void setSupplierAddress(String supplierAddress) {
        this.SupplierAddress = supplierAddress;
    }

    public String getWebSite() {
        return WebSite;
    }

    public void setWebSite(String webSite) {
        this.WebSite = webSite;
    }

    public String getSupplierPhone() {
        return SupplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.SupplierPhone = supplierPhone;
    }

    public String getFaxSupplier() {
        return FaxSupplier;
    }

    public void setFaxSupplier(String faxSupplier) {
        this.FaxSupplier = faxSupplier;
    }

    public String getOfficialEmail() {
        return OfficialEmail;
    }

    public void setOfficialEmail(String officialEmail) {
        this.OfficialEmail = officialEmail;
    }

    public String getPersonContact() {
        return PersonContact;
    }

    public void setPersonContact(String personContact) {
        this.PersonContact = personContact;
    }

    public String getPhoneContact() {
        return PhoneContact;
    }

    public void setPhoneContact(String phoneContact) {
        this.PhoneContact = phoneContact;
    }

    public Date getDateBulid() {
        return DateBulid;
    }

    public void setDateBulid(Date DateBulid) {
        this.DateBulid = DateBulid;
    }

    public void setDateBulid(String dateBulidStr) {
        if (dateBulidStr != null && !dateBulidStr.isEmpty()) {
            try {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                this.DateBulid = sdf.parse(dateBulidStr);
            } catch (ParseException e) {
                System.out.println(e.getMessage());
            }
        }
    }

    public String getGoodsSupply() {
        return GoodsSupply;
    }

    public void setGoodsSupply(String goodsSupply) {
        this.GoodsSupply = goodsSupply;
    }

    public Date getDateFirstSupply() {
        return DateFirstSupply;
    }

    public void setDateFirstSupply(Date DateFirstSupply) {
        this.DateFirstSupply = DateFirstSupply;
    }

    public void setDateFirstSupply(String DateFirstSupply) {
        if (DateFirstSupply != null && !DateFirstSupply.isEmpty()) {
            try {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                this.DateFirstSupply = sdf.parse(DateFirstSupply);
            } catch (ParseException e) {
                System.out.println(e.getMessage());
            }
        }
    }

    public int getAccumulativeTime() {
        return AccumulativeTime;
    }

    public void setAccumulativeTime(int accumulativeTime) {
        this.AccumulativeTime = accumulativeTime;
    }

    public int getAccumulativeLevel() {
        return AccumulativeLevel;
    }

    public void setAccumulativeLevel(int accumulativeLevel) {
        this.AccumulativeLevel = accumulativeLevel;
    }

    public int getNumFault() {
        return NumFault;
    }

    public void setNumFault(int numFault) {
        this.NumFault = numFault;
    }

    public int getNumBacklogging() {
        return NumBacklogging;
    }

    public void setNumBacklogging(int numBacklogging) {
        this.NumBacklogging = numBacklogging;
    }

    public double getTotalMoney() {
        return TotalMoney;
    }

    public void setTotalMoney(double totalMoney) {
        this.TotalMoney = totalMoney;
    }

    public double getNoFaultRate() {
        return NoFaultRate;
    }

    public void setNoFaultRate(double noFaultRate) {
        this.NoFaultRate = noFaultRate;
    }

    public double getDeliveryOnTime() {
        return DeliveryOnTime;
    }

    public void setDeliveryOnTime(double deliveryOnTime) {
        this.DeliveryOnTime = deliveryOnTime;
    }

}